package com.neuedu.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 金山
 * 项目：boot-learn
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/2010:35
 */
@RestController
@Slf4j
public class LogController {

    /**
     * http://localhost:8080/log
     * @return
     */
    @RequestMapping("/log")
    String log(){
        log.trace("冗余信息-debug");
        log.debug("调试信息-debug");
        log.info("用意义的信息-info");

        log.warn("警告信息-warn");
        log.error("错误信息-error");

        return "log-success";
    }



}
